
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>添加游戏更新信息</title>
    <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css">
    <link rel="stylesheet" href="__PUBLIC__/static/css/style.css">
    <link rel="icon" href="__PUBLIC__/static/image/code.png">
</head>
<body class="body">

<form class="layui-form" action="" method="post" id="addform">


  <div class="layui-form-item">
    <label class="layui-form-label">类型</label>
    <div class="layui-input-block">
      <input type="radio" name="type" value="1" title="热更" checked="">
      <input type="radio" name="type" value="0" title="强烈">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">操作系统</label>
    <div class="layui-input-block">
      <input type="radio" name="os" value="1" title="IOS">
      <input type="radio" name="os" value="0" title="安卓" checked="">
    </div>
  </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">公告版本号</label>
            <div class="layui-input-inline">
                <input type="type" name="version" lay-verify="required" autocomplete="off" placeholder="请输入公告版本号" class="layui-input">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-block">
            <label class="layui-form-label">地址</label>
            <div class="layui-input-block">
                <input type="type" name="update_url" lay-verify="url" autocomplete="off" placeholder="请输入游戏地址" class="layui-input">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
	<input type="hidden" name="id" value="{$id}">
</form>
<!-- 通用-970*90 -->
<script src="__PUBLIC__/layui/layui.js" charset="utf-8"></script>
<script src="__ADMIN__/js/comm.js" charset="utf-8"></script>
<script>
        layui.use(['form','admin'], function(){
        var $ = layui.jquery
            ,layer = layui.layer
            ,form = layui.form
            ,admin = layui.admin;
                 //重点处


        //监听指定开关
        form.on('submit(demo1)', function(data){
            admin.action('{:url('admin/GameCenter/addupdate')}',$("#addform").serialize());
            return false;
        });


    });
</script>
</body>
</html>